.class public Lcom/estrongs/android/ui/dialog/q;
.super Landroid/app/Dialog;
.source "CommonAlertDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/dialog/q$p;,
        Lcom/estrongs/android/ui/dialog/q$o;,
        Lcom/estrongs/android/ui/dialog/q$n;
    }
.end annotation


# instance fields
.field button_cancel:Landroid/widget/Button;

.field button_ok:Landroid/widget/Button;

.field private dismissed:Z

.field public itemsEnable:Z

.field protected listAdapter:Lcom/estrongs/android/ui/dialog/q$o;

.field protected listView:Landroid/widget/ListView;

.field protected mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

.field private mButtonListener0:Landroid/content/DialogInterface$OnClickListener;

.field private mButtonListener1:Landroid/content/DialogInterface$OnClickListener;

.field private mButtonListener2:Landroid/content/DialogInterface$OnClickListener;

.field protected mContentContainer:Landroid/widget/FrameLayout;

.field protected mContentView:Landroid/view/View;

.field protected mContext:Landroid/content/Context;

.field private final mHandler:Landroid/os/Handler;

.field private mIcon:Landroid/graphics/drawable/Drawable;

.field private mItemSelectedListener:Landroid/content/DialogInterface$OnClickListener;

.field private mMessageTv:Landroid/widget/TextView;

.field private mProgressBar:Landroid/widget/ProgressBar;

.field private mSelectable:Z

.field private mTitleTv:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const v0, 0x7f1202a5

    .line 13
    invoke-direct {p0, p1, v0}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;I)V

    return-void
.end method

.method protected constructor <init>(Landroid/content/Context;I)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    const/4 p2, 0x0

    .line 2
    iput-boolean p2, p0, Lcom/estrongs/android/ui/dialog/q;->dismissed:Z

    .line 3
    new-instance p2, Landroid/os/Handler;

    invoke-direct {p2}, Landroid/os/Handler;-><init>()V

    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->mHandler:Landroid/os/Handler;

    const/4 p2, 0x1

    .line 4
    iput-boolean p2, p0, Lcom/estrongs/android/ui/dialog/q;->itemsEnable:Z

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/q;->init()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;ZLandroid/content/DialogInterface$OnCancelListener;)V
    .locals 0

    .line 7
    invoke-direct {p0, p1, p2, p3}, Landroid/app/Dialog;-><init>(Landroid/content/Context;ZLandroid/content/DialogInterface$OnCancelListener;)V

    const/4 p2, 0x0

    .line 8
    iput-boolean p2, p0, Lcom/estrongs/android/ui/dialog/q;->dismissed:Z

    .line 9
    new-instance p2, Landroid/os/Handler;

    invoke-direct {p2}, Landroid/os/Handler;-><init>()V

    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->mHandler:Landroid/os/Handler;

    const/4 p2, 0x1

    .line 10
    iput-boolean p2, p0, Lcom/estrongs/android/ui/dialog/q;->itemsEnable:Z

    .line 11
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    .line 12
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/q;->init()V

    return-void
.end method

.method static synthetic access$000(Lcom/estrongs/android/ui/dialog/q;)Landroid/content/DialogInterface$OnClickListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/q;->mButtonListener0:Landroid/content/DialogInterface$OnClickListener;

    return-object p0
.end method

.method static synthetic access$100(Lcom/estrongs/android/ui/dialog/q;)Landroid/content/DialogInterface$OnClickListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/q;->mButtonListener1:Landroid/content/DialogInterface$OnClickListener;

    return-object p0
.end method

.method static synthetic access$200(Lcom/estrongs/android/ui/dialog/q;)Landroid/content/DialogInterface$OnClickListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/q;->mButtonListener2:Landroid/content/DialogInterface$OnClickListener;

    return-object p0
.end method

.method static synthetic access$300(Lcom/estrongs/android/ui/dialog/q;)Landroid/content/DialogInterface$OnClickListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/q;->mItemSelectedListener:Landroid/content/DialogInterface$OnClickListener;

    return-object p0
.end method

.method static synthetic access$400(Lcom/estrongs/android/ui/dialog/q;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/q;->dismissNoException()V

    return-void
.end method

.method static synthetic access$500(Lcom/estrongs/android/ui/dialog/q;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/ui/dialog/q;->mSelectable:Z

    return p0
.end method

.method private dismissNoException()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    :try_start_0
    iput-boolean v0, p0, Lcom/estrongs/android/ui/dialog/q;->dismissed:Z

    .line 2
    invoke-super {p0}, Landroid/app/Dialog;->dismiss()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method private init()V
    .locals 7

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Lcom/estrongs/android/ui/dialog/q;->mSelectable:Z

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    .line 3
    invoke-static {v1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const/4 v2, 0x0

    const v3, 0x7f0c00a1

    invoke-virtual {v1, v3, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/FrameLayout;

    const v3, 0x7f09023d

    .line 4
    invoke-virtual {v1, v3}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    iput-object v3, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v4, 0x7f090ba6

    .line 5
    invoke-virtual {v3, v4}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/estrongs/android/ui/dialog/q;->mTitleTv:Landroid/widget/TextView;

    .line 6
    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v4, 0x7f090ba8

    invoke-virtual {v3, v4}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v3

    const/16 v4, 0x8

    invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V

    .line 7
    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v5, 0x102000b

    invoke-virtual {v3, v5}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/estrongs/android/ui/dialog/q;->mMessageTv:Landroid/widget/TextView;

    .line 8
    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setVisibility(I)V

    .line 9
    invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f0700d0

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v3

    .line 10
    invoke-virtual {p0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;

    move-result-object v4

    .line 11
    invoke-virtual {v4, v2}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 12
    sget v5, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v6, 0x10

    if-lt v5, v6, :cond_0

    .line 13
    invoke-virtual {v4}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v5

    invoke-virtual {v5, v2}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V

    .line 14
    :cond_0
    invoke-virtual {v4}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2, v3, v3, v3, v3}, Landroid/view/View;->setPadding(IIII)V

    const/16 v2, 0x20

    .line 15
    invoke-virtual {v4, v2}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 16
    invoke-virtual {v4}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v2

    const/4 v3, -0x1

    .line 17
    iput v3, v2, Landroid/view/WindowManager$LayoutParams;->width:I

    const/4 v3, -0x2

    .line 18
    iput v3, v2, Landroid/view/WindowManager$LayoutParams;->height:I

    const/16 v4, 0x11

    .line 19
    iput v4, v2, Landroid/view/WindowManager$LayoutParams;->gravity:I

    .line 20
    invoke-virtual {p0, v2}, Lcom/estrongs/android/ui/dialog/q;->onWindowAttributesChanged(Landroid/view/WindowManager$LayoutParams;)V

    .line 21
    invoke-super {p0, v1}, Landroid/app/Dialog;->setContentView(Landroid/view/View;)V

    .line 22
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    .line 23
    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v1

    iget v1, v1, Landroid/content/res/Configuration;->orientation:I

    const/4 v2, 0x0

    if-ne v1, v0, :cond_1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    :goto_0
    if-nez v0, :cond_4

    .line 24
    invoke-static {}, Lcom/estrongs/android/util/o0;->d()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 25
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    mul-int/lit8 v0, v0, 0x2

    .line 26
    div-int/lit8 v0, v0, 0x3

    goto :goto_1

    .line 27
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    .line 28
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/estrongs/android/pop/utils/t;->i(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_3

    mul-int/lit8 v0, v0, 0x4

    .line 29
    div-int/lit8 v0, v0, 0x5

    .line 30
    :cond_3
    :goto_1
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/dialog/DialogRootLayout;->setMaxWidth(I)V

    goto :goto_2

    .line 31
    :cond_4
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    .line 32
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/estrongs/android/pop/utils/t;->i(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_5

    mul-int/lit8 v0, v0, 0x4

    .line 33
    div-int/lit8 v0, v0, 0x5

    .line 34
    :cond_5
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/dialog/DialogRootLayout;->setMaxWidth(I)V

    .line 35
    :goto_2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v1, 0x7f09025f

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContentContainer:Landroid/widget/FrameLayout;

    .line 36
    new-instance v0, Landroid/widget/ProgressBar;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/ProgressBar;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mProgressBar:Landroid/widget/ProgressBar;

    .line 37
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v5, 0x7f080842

    invoke-virtual {v1, v5}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setIndeterminateDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 38
    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v0, v3, v3}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 39
    iput v4, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    .line 40
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mContentContainer:Landroid/widget/FrameLayout;

    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/q;->mProgressBar:Landroid/widget/ProgressBar;

    invoke-virtual {v1, v3, v0}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 41
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mProgressBar:Landroid/widget/ProgressBar;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 42
    invoke-virtual {p0, v2}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    return-void
.end method


# virtual methods
.method public dismiss()V
    .locals 2

    .line 1
    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mHandler:Landroid/os/Handler;

    invoke-virtual {v1}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;

    move-result-object v1

    if-ne v0, v1, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/q;->dismissNoException()V

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/estrongs/android/ui/dialog/q$d;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/q$d;-><init>(Lcom/estrongs/android/ui/dialog/q;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :goto_0
    return-void
.end method

.method public getCancelButton()Landroid/widget/Button;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->button_cancel:Landroid/widget/Button;

    return-object v0
.end method

.method public getConfirmButton()Landroid/widget/Button;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->button_ok:Landroid/widget/Button;

    return-object v0
.end method

.method public getMessageView()Landroid/widget/TextView;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mMessageTv:Landroid/widget/TextView;

    return-object v0
.end method

.method protected getString(I)Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public getTitle()Ljava/lang/CharSequence;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mTitleTv:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    return-object v0
.end method

.method public hideAllButtons()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v1, 0x7f0901a2

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    const/16 v1, 0x8

    .line 2
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    return-void
.end method

.method public hideProgressBar()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContentView:Landroid/view/View;

    if-eqz v0, :cond_0

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mProgressBar:Landroid/widget/ProgressBar;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    const/4 v0, 0x1

    .line 4
    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/dialog/q;->setAllButtonsEnabled(Z)V

    return-void
.end method

.method public isDismissed()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/dialog/q;->dismissed:Z

    return v0
.end method

.method public onWindowAttributesChanged(Landroid/view/WindowManager$LayoutParams;)V
    .locals 0

    .line 1
    :try_start_0
    invoke-super {p0, p1}, Landroid/app/Dialog;->onWindowAttributesChanged(Landroid/view/WindowManager$LayoutParams;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 2
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    return-void
.end method

.method public requestInputMethod()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/4 v1, 0x5

    .line 2
    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    return-void
.end method

.method public setAllButtonsEnabled(Z)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v1, 0x7f09082d

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/View;->setEnabled(Z)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v1, 0x7f090835

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/View;->setEnabled(Z)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v1, 0x7f090915

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/View;->setEnabled(Z)V

    return-void
.end method

.method public setBackground(Landroid/graphics/drawable/Drawable;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :cond_0
    return-void
.end method

.method public setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V
    .locals 1

    const/4 v0, -0x1

    if-ne p1, v0, :cond_0

    .line 1
    invoke-virtual {p0, p2, p3}, Lcom/estrongs/android/ui/dialog/q;->setConfirmButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    goto :goto_0

    :cond_0
    const/4 v0, -0x2

    if-ne p1, v0, :cond_1

    .line 2
    invoke-virtual {p0, p2, p3}, Lcom/estrongs/android/ui/dialog/q;->setCancelButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    :cond_1
    :goto_0
    return-void
.end method

.method public setCancelButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v1, 0x7f09082d

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->button_cancel:Landroid/widget/Button;

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->button_cancel:Landroid/widget/Button;

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    if-nez p2, :cond_0

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->button_cancel:Landroid/widget/Button;

    new-instance p2, Lcom/estrongs/android/ui/dialog/q$j;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/dialog/q$j;-><init>(Lcom/estrongs/android/ui/dialog/q;)V

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0

    .line 5
    :cond_0
    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->mButtonListener1:Landroid/content/DialogInterface$OnClickListener;

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->button_cancel:Landroid/widget/Button;

    new-instance p2, Lcom/estrongs/android/ui/dialog/q$k;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/dialog/q$k;-><init>(Lcom/estrongs/android/ui/dialog/q;)V

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 7
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->button_cancel:Landroid/widget/Button;

    return-object p1
.end method

.method public setConfirmButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v1, 0x7f090915

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->button_ok:Landroid/widget/Button;

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->button_ok:Landroid/widget/Button;

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 4
    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->mButtonListener0:Landroid/content/DialogInterface$OnClickListener;

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->button_ok:Landroid/widget/Button;

    new-instance p2, Lcom/estrongs/android/ui/dialog/q$i;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/dialog/q$i;-><init>(Lcom/estrongs/android/ui/dialog/q;)V

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->button_ok:Landroid/widget/Button;

    return-object p1
.end method

.method public setContentView(I)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/q;->setContentView(Landroid/view/View;)V

    return-void
.end method

.method public setContentView(Landroid/view/View;)V
    .locals 2

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->mContentView:Landroid/view/View;

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->mContentContainer:Landroid/widget/FrameLayout;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->mContentContainer:Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mContentView:Landroid/view/View;

    invoke-virtual {p1, v1, v0}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;I)V

    return-void
.end method

.method public setContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
    .locals 2

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->mContentView:Landroid/view/View;

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContentContainer:Landroid/widget/FrameLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, p1, v1, p2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method public setItems([Landroid/graphics/drawable/Drawable;[Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)V
    .locals 10

    if-nez p2, :cond_0

    return-void

    .line 2
    :cond_0
    iput-object p4, p0, Lcom/estrongs/android/ui/dialog/q;->mItemSelectedListener:Landroid/content/DialogInterface$OnClickListener;

    .line 3
    new-instance p4, Landroid/widget/ListView;

    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-direct {p4, v0}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V

    iput-object p4, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    const/high16 v1, 0x41700000    # 15.0f

    invoke-static {v0, v1}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v0

    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-static {v2, v1}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v2

    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-static {v3, v1}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v1

    const/4 v3, 0x0

    invoke-virtual {p4, v0, v2, v1, v3}, Landroid/widget/ListView;->setPadding(IIII)V

    .line 5
    iget-object p4, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    const v0, 0x7f080816

    invoke-virtual {p4, v0}, Landroid/widget/ListView;->setSelector(I)V

    .line 6
    new-instance p4, Lcom/estrongs/android/ui/dialog/q$o;

    iget-object v6, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    move-object v4, p4

    move-object v5, p0

    move-object v7, p1

    move-object v8, p2

    move v9, p3

    invoke-direct/range {v4 .. v9}, Lcom/estrongs/android/ui/dialog/q$o;-><init>(Lcom/estrongs/android/ui/dialog/q;Landroid/content/Context;[Landroid/graphics/drawable/Drawable;[Ljava/lang/CharSequence;I)V

    iput-object p4, p0, Lcom/estrongs/android/ui/dialog/q;->listAdapter:Lcom/estrongs/android/ui/dialog/q$o;

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    const p3, 0x7f08012a

    invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    const/4 p3, 0x0

    invoke-static {p2, p3}, Les/fy;->a(Landroid/content/Context;F)I

    move-result p2

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setDividerHeight(I)V

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    const/4 p2, 0x1

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setFocusable(Z)V

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    const/high16 p2, 0x3000000

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setScrollBarStyle(I)V

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    invoke-virtual {p1, v3}, Landroid/widget/ListView;->setCacheColorHint(I)V

    .line 12
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$b;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$b;-><init>(Lcom/estrongs/android/ui/dialog/q;)V

    .line 13
    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    invoke-virtual {p2, p1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->listAdapter:Lcom/estrongs/android/ui/dialog/q$o;

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 15
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/q;->setContentView(Landroid/view/View;)V

    return-void
.end method

.method public setItems([Landroid/graphics/drawable/Drawable;[Ljava/lang/CharSequence;[ZLandroid/content/DialogInterface$OnClickListener;)V
    .locals 10

    if-nez p2, :cond_0

    return-void

    .line 16
    :cond_0
    iput-object p4, p0, Lcom/estrongs/android/ui/dialog/q;->mItemSelectedListener:Landroid/content/DialogInterface$OnClickListener;

    .line 17
    new-instance p4, Landroid/widget/ListView;

    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-direct {p4, v0}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V

    iput-object p4, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    const/high16 v1, 0x41700000    # 15.0f

    invoke-static {v0, v1}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v0

    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-static {v2, v1}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v2

    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-static {v3, v1}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v1

    const/4 v3, 0x0

    invoke-virtual {p4, v0, v2, v1, v3}, Landroid/widget/ListView;->setPadding(IIII)V

    .line 19
    iget-object p4, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    const v0, 0x7f080816

    invoke-virtual {p4, v0}, Landroid/widget/ListView;->setSelector(I)V

    .line 20
    new-instance p4, Lcom/estrongs/android/ui/dialog/q$p;

    iget-object v6, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    move-object v4, p4

    move-object v5, p0

    move-object v7, p1

    move-object v8, p2

    move-object v9, p3

    invoke-direct/range {v4 .. v9}, Lcom/estrongs/android/ui/dialog/q$p;-><init>(Lcom/estrongs/android/ui/dialog/q;Landroid/content/Context;[Landroid/graphics/drawable/Drawable;[Ljava/lang/CharSequence;[Z)V

    iput-object p4, p0, Lcom/estrongs/android/ui/dialog/q;->listAdapter:Lcom/estrongs/android/ui/dialog/q$o;

    .line 21
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    const p3, 0x7f08012a

    invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 22
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    const/4 p3, 0x0

    invoke-static {p2, p3}, Les/fy;->a(Landroid/content/Context;F)I

    move-result p2

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setDividerHeight(I)V

    .line 23
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    const/4 p2, 0x1

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setFocusable(Z)V

    .line 24
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    const/high16 p2, 0x3000000

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setScrollBarStyle(I)V

    .line 25
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    invoke-virtual {p1, v3}, Landroid/widget/ListView;->setCacheColorHint(I)V

    .line 26
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$c;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$c;-><init>(Lcom/estrongs/android/ui/dialog/q;)V

    .line 27
    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    invoke-virtual {p2, p1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 28
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->listAdapter:Lcom/estrongs/android/ui/dialog/q$o;

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 29
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/q;->setContentView(Landroid/view/View;)V

    return-void
.end method

.method public setItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, v0, p1, p2, p3}, Lcom/estrongs/android/ui/dialog/q;->setItems([Landroid/graphics/drawable/Drawable;[Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)V

    return-void
.end method

.method public setItemsEnable(Z)V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/dialog/q;->itemsEnable:Z

    if-eq v0, p1, :cond_1

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/ui/dialog/q;->itemsEnable:Z

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->listAdapter:Lcom/estrongs/android/ui/dialog/q$o;

    if-eqz v0, :cond_0

    .line 4
    invoke-virtual {v0}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V

    .line 5
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->listView:Landroid/widget/ListView;

    if-eqz v0, :cond_1

    .line 6
    invoke-virtual {v0, p1}, Landroid/widget/ListView;->setEnabled(Z)V

    :cond_1
    return-void
.end method

.method public setLeftButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v1, 0x7f09082d

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    .line 3
    invoke-virtual {v0, p1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 4
    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->mButtonListener0:Landroid/content/DialogInterface$OnClickListener;

    .line 5
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$l;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$l;-><init>(Lcom/estrongs/android/ui/dialog/q;)V

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object v0
.end method

.method public setMessage(Ljava/lang/CharSequence;)V
    .locals 1

    if-eqz p1, :cond_0

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mMessageTv:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->mMessageTv:Landroid/widget/TextView;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    .line 3
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->mMessageTv:Landroid/widget/TextView;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_0
    return-void
.end method

.method public setMiddleButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v1, 0x7f090835

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    .line 3
    invoke-virtual {v0, p1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 4
    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->mButtonListener1:Landroid/content/DialogInterface$OnClickListener;

    .line 5
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$m;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$m;-><init>(Lcom/estrongs/android/ui/dialog/q;)V

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object v0
.end method

.method public setRightButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v1, 0x7f090915

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    .line 3
    invoke-virtual {v0, p1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 4
    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->mButtonListener2:Landroid/content/DialogInterface$OnClickListener;

    .line 5
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$a;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$a;-><init>(Lcom/estrongs/android/ui/dialog/q;)V

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object v0
.end method

.method public setSelectable(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/ui/dialog/q;->mSelectable:Z

    return-void
.end method

.method public setSingleButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, p1, v0, p2}, Lcom/estrongs/android/ui/dialog/q;->setSingleButton(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;Landroid/content/DialogInterface$OnClickListener;)V

    return-void
.end method

.method public setSingleButton(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;Landroid/content/DialogInterface$OnClickListener;)V
    .locals 3

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v1, 0x7f090835

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v2, 0x7f090915

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    const v1, 0x7f09082d

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    const/4 v1, 0x0

    .line 5
    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    const/4 v1, 0x1

    .line 6
    invoke-virtual {v0, v1}, Landroid/widget/Button;->setFocusable(Z)V

    const/4 v1, 0x0

    .line 7
    invoke-virtual {v0, p2, v1, v1, v1}, Landroid/widget/Button;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    .line 8
    invoke-virtual {v0, p1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    if-nez p3, :cond_0

    .line 9
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$e;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$e;-><init>(Lcom/estrongs/android/ui/dialog/q;)V

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0

    .line 10
    :cond_0
    iput-object p3, p0, Lcom/estrongs/android/ui/dialog/q;->mButtonListener0:Landroid/content/DialogInterface$OnClickListener;

    .line 11
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$f;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$f;-><init>(Lcom/estrongs/android/ui/dialog/q;)V

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :goto_0
    if-nez p3, :cond_1

    .line 12
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$g;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$g;-><init>(Lcom/estrongs/android/ui/dialog/q;)V

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_1

    .line 13
    :cond_1
    iput-object p3, p0, Lcom/estrongs/android/ui/dialog/q;->mButtonListener0:Landroid/content/DialogInterface$OnClickListener;

    .line 14
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$h;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$h;-><init>(Lcom/estrongs/android/ui/dialog/q;)V

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :goto_1
    return-void
.end method

.method public setTitle(I)V
    .locals 1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/q;->setTitle(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setTitle(Ljava/lang/CharSequence;)V
    .locals 2

    const v0, 0x7f090ba8

    if-nez p1, :cond_0

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 2
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    invoke-virtual {v1, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mTitleTv:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    return-void
.end method

.method public show()V
    .locals 1

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/util/o0;->a(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-super {p0}, Landroid/app/Dialog;->show()V

    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/ui/dialog/q;->dismissed:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 4
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    return-void
.end method

.method public showProgressBar()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mContentView:Landroid/view/View;

    if-eqz v0, :cond_0

    const/4 v1, 0x4

    .line 2
    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->mProgressBar:Landroid/widget/ProgressBar;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 4
    invoke-virtual {p0, v1}, Lcom/estrongs/android/ui/dialog/q;->setAllButtonsEnabled(Z)V

    return-void
.end method
